package com.epam.Entity;


import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.util.UUID;

@Entity
@Table(name = "t_book")
@Data
public class Book {

    @Id
    private String bookId;

    private String bookName;

    private Integer bookPrice;

    private Integer bookType;

    private Date createTime;

    private Date modifyTime;

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", bookPrice=" + bookPrice +
                ", bookType=" + bookType +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
